package com.example.gsp.compiler;

import com.example.gsp.proxy.*;

import java.lang.reflect.Method;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Test1 {


    public static void main(String[] args) throws Exception {
       /* Moveable m = (Moveable) Proxy.newProxyInstance(Moveable.class,new TimeHandler(new Tank()));
        m.move();
        m.stop();
        m.pause(1);*/
        /*Method m = TankLogProxy.class.getMethod("pause",int.class);
        System.out.println(m.getName());
        Class<?> clz = int.class;
        System.out.println(clz.getName());*/
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd, HH:mm:ss");
        String now = LocalDateTime.now().format(formatter);
        System.out.println(now);

    }
}
